package moni.anyou.com.view.amap.cluster;

import com.amap.api.maps2d.model.LatLng;
import com.amap.api.maps2d.model.Marker;

import java.util.ArrayList;
import java.util.List;

import moni.anyou.com.view.amap.cluster.demo.RegionItem;

/**
 * Created by yiyi.qi on 16/10/10.
 */

public class Cluster {


    private LatLng mLatLng;
    private List<RegionItem> mRegionItems;
    private Marker mMarker;


    Cluster( LatLng latLng) {

        mLatLng = latLng;
        mRegionItems = new ArrayList<RegionItem>();
    }

    void addRegionItem(RegionItem RegionItem) {
        mRegionItems.add(RegionItem);
    }

    public int getClusterCount() {
        return mRegionItems.size();
    }



    public LatLng getCenterLatLng() {
        return mLatLng;
    }

    void setMarker(Marker marker) {
        mMarker = marker;
    }

    Marker getMarker() {
        return mMarker;
    }

    public List<RegionItem> getRegionItems() {
        return mRegionItems;
    }
}
